<template>
	<view class="my-container">
		<!-- 未登录 -->
		<my-login v-if="!token"></my-login>
		<!-- 登录后 -->
		<my-userInfo v-else></my-userInfo>
	</view>
</template>

<script>
import badgeMix from '@/mixins/tabbar-badge.js'
import { mapState } from 'vuex'
	export default {

		data() {
			return {
				
			};
		},
		mixins: [badgeMix],
		computed:{
			...mapState( 'm_user', ['token'] )
		}
	}
</script>

<style lang="scss">
	.my-container {
		height: 100vh;
	}
</style>
